<?
include_once ($_SERVER['DOCUMENT_ROOT']."/inc/conn.inc.php");
include_once ($_SERVER['DOCUMENT_ROOT']."/inc/property.inc.php");
include_once ($_SERVER['DOCUMENT_ROOT']."/inc/header.inc.php");

?>
<script>
    $(function() {
        $("#_shadowPop").draggable();
    });
</script>

<body>
<?
include_once ($_SERVER['DOCUMENT_ROOT']."/inc/topMenu.inc.php");
?>

<div id="_body" onmouseover="fnHideSubMenu()">
    <div id="_bodyLeft">
        <div id="_curMenu"><p><?=$__curTitle?></p></div>
        <div id="_curSubMenu">
        </div>
    </div>
    <div id="_bodyRight" style="height:720px;">
        <div id="search01">
            <div class="normal">
                <input type="text" id="findComapny" onkeypress="fnGetList()" tabindex="1" style="width:150px;">
            </div>
            <div class="searchBtn" onClick="fnGetList01(1)" onkeypress="fnGetList()" style="width:50px;" tabindex="2">조 회</div>
        </div>
        <div id="grid01" onmouseover="fnHideSubMenu()" class="grid" style="float:left">
            <div id="grid01Top" class="gridTop">
                <div id="grid01Title" class="gridTitle"></div>
                <div id="grid01Cnt" class="gridCnt"></div>
            </div>
            <div id="grid01Header" style="overflow: hidden; height: 20px;"></div>
            <div id="grid01Body" style="overflow: auto" onscroll="fnScrolling('grid01')"></div>
            <div id="grid01BodyFix" style="position: absolute;display:none;overflow:hidden;"></div>
        </div>
        <div style="float:right;width:300px;">
            <div id="grid02" onmouseover="fnHideSubMenu()" class="grid" style="float:right">
                <div id="grid02Top" class="gridTop">
                    <div id="grid02Title" class="gridTitle"></div>
                    <div id="grid02Cnt" class="gridCnt"></div>
                </div>
                <div id="grid02Header" style="overflow: hidden; height: 20px;"></div>
                <div id="grid02Body" style="overflow: auto" onscroll="fnScrolling('grid02')"></div>
                <div id="grid02BodyFix" style="position: absolute;display:none;overflow:hidden;"></div>
            </div>
            <div id="saveForm">
                <div class="frmGroup" style="height:372px;">
                    <input type="hidden" id="invoiceCd">
                    <div style="margin-top:5px">
                        <div class="frmTitle">회사명</div>
                        <div class="frmInput"><input type="text" id="compNm" style="width:60px;ime-mode:auto;" onkeypress="fnComboCompany(this.value,'','compCd');"><select id="compCd"><option value="">-거래처-</option></select></div>
                    </div>
                    <div>
                        <div class="frmTitle">대표자</div>
                        <div class="frmInput"><input type="text" id="owner" style="width:120px;"> </div>
                    </div>
                    <div>
                        <div class="frmTitle">발행일</div>
                        <div class="frmInput"><input type="text" id="issueDt" style="width:85px;text-align:center;margin-right:3px;" onKeyup="fnSetDate(this);" maxlength="10" value="<?=$__curDate?>"> </div>
                    </div>
                    <div>
                        <div class="frmTitle">금 액</div>
                        <div class="frmInput"><input type="text" id="amount" style="width:120px;text-align:right;" onKeyup="fnCommify(this)"> </div>
                    </div>
                    <div>
                        <div class="frmTitle">원 금</div>
                        <div class="frmInput"><input type="text" id="orgAmount" style="width:120px;text-align:right;" onKeyup="fnCommify(this)"> </div>
                    </div>
                    <div>
                        <div class="frmTitle">부가세</div>
                        <div class="frmInput"><input type="text" id="tax" style="width:120px;text-align:right;" onKeyup="fnCommify(this)"> </div>
                    </div>
                    <div>
                        <div class="frmTitle">입금일</div>
                        <div class="frmInput"><input type="text" id="incomeDt" style="width:85px;text-align:center;margin-right:3px;" onKeyup="fnSetDate(this);" maxlength="10" value="<?=$__curDate?>"> </div>
                    </div>
                    <div>
                        <div class="frmTitle">담당자</div>
                        <div class="frmInput"><input type="text" id="major" style="width:120px;"> </div>
                    </div>
                    <div>
                        <div class="frmTitle">연락처</div>
                        <div class="frmInput"><input type="text" id="majorPhone" style="width:185px;"> </div>
                    </div>
                    <div>
                        <div class="frmTitle">메 모</div>
                        <div class="frmInput"><textarea id="memo" style="width:185px;height:80px;"></textarea> </div>
                    </div>
                    <div>
                        <div class="frmTitle" style="margin-top:66px;">유효여부</div>
                        <div class="frmInput" style="margin-top:66px;">
                            <select id="flag" style="width:100px;">
                                <option value="Y">유효</option>
                                <option value="N">폐기</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div>
                    <div class="searchBtn" onClick="fnSave()" style="width:50px;float:left;margin-left:90px;">저 장</div>
                    <div class="searchBtn" onClick="fnPrintInvoice()" style="width:90px;float:left;">청구서 출력</div>
                </div>
            </div>
        </div>
    </div>

</div>
<div id="_bottom">

</div>
</body>
</html>